home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17067 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 40 61 61 69 |each <la|sbfl@aai|
|00000060| 2e 61 72 63 6f 2e 63 6f | 6d 3e 0a 53 75 62 6a 65 |.arco.co|m>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 6e 65 77 20 77 69 74 68 |ct: Re: |new with|
|00000080| 20 6d 75 6c 74 69 64 69 | 6d 65 6e 73 69 6f 6e 61 | multidi|mensiona|
|00000090| 6c 20 61 72 72 61 79 73 | 0a 58 2d 4e 6e 74 70 2d |l arrays|.X-Nntp-|
|000000a0| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 31 33 |Posting-|Host: 13|
|000000b0| 36 2e 32 32 36 2e 31 31 | 36 2e 31 0a 43 6f 6e 74 |6.226.11|6.1.Cont|
|000000c0| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|000000d0| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 75 73 |lain; ch|arset=us|
|000000e0| 2d 61 73 63 69 69 0a 54 | 6f 3a 20 44 61 72 72 65 |-ascii.T|o: Darre|
|000000f0| 6c 20 4b 20 52 6f 62 65 | 72 74 73 6f 6e 20 3c 64 |l K Robe|rtson <d|
|00000100| 6b 72 31 40 4d 49 54 2e | 45 44 55 3e 0a 4d 65 73 |kr1@MIT.|EDU>.Mes|
|00000110| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 36 45 43 38 |sage-ID:| <316EC8|
|00000120| 35 43 2e 31 41 32 31 40 | 61 61 69 2e 61 72 63 6f |5C.1A21@|aai.arco|
|00000130| 2e 63 6f 6d 3e 0a 53 65 | 6e 64 65 72 3a 20 75 73 |.com>.Se|nder: us|
|00000140| 65 6e 65 74 40 6e 65 77 | 73 2e 61 72 63 6f 2e 63 |enet@new|s.arco.c|
|00000150| 6f 6d 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |om.Conte|nt-Trans|
|00000160| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|00000170| 69 74 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |it.Organ|ization:|
|00000180| 20 41 52 43 4f 20 41 6c | 61 73 6b 61 20 49 6e 63 | ARCO Al|aska Inc|
|00000190| 2e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 33 |..Refere|nces: <3|
|000001a0| 31 36 39 42 39 43 33 2e | 32 41 31 30 40 4d 49 54 |169B9C3.|2A10@MIT|
|000001b0| 2e 45 44 55 3e 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |.EDU>.Mi|me-Versi|
|000001c0| 6f 6e 3a 20 31 2e 30 0a | 44 61 74 65 3a 20 46 72 |on: 1.0.|Date: Fr|
|000001d0| 69 2c 20 31 32 20 41 70 | 72 20 31 39 39 36 20 32 |i, 12 Ap|r 1996 2|
|000001e0| 31 3a 31 37 3a 31 36 20 | 47 4d 54 0a 58 2d 4d 61 |1:17:16 |GMT.X-Ma|
|000001f0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 32 2e |iler: Mo|zilla 2.|
|00000200| 30 20 28 58 31 31 3b 20 | 49 3b 20 48 50 2d 55 58 |0 (X11; |I; HP-UX|
|00000210| 20 41 2e 30 39 2e 30 35 | 20 39 30 30 30 2f 37 35 | A.09.05| 9000/75|
|00000220| 35 29 0a 0a 44 61 72 72 | 65 6c 20 4b 20 52 6f 62 |5)..Darr|el K Rob|
|00000230| 65 72 74 73 6f 6e 20 77 | 72 6f 74 65 3a 0a 3e 20 |ertson w|rote:.> |
|00000240| 0a 3e 20 48 69 2c 20 49 | 20 77 6f 6e 64 65 72 20 |.> Hi, I| wonder |
|00000250| 69 66 20 61 6e 79 6f 6e | 65 20 63 61 6e 20 68 65 |if anyon|e can he|
|00000260| 6c 70 20 6d 65 2e 20 49 | 20 77 61 6e 74 20 74 6f |lp me. I| want to|
|00000270| 20 75 73 65 20 22 6e 65 | 77 22 20 74 6f 20 63 72 | use "ne|w" to cr|
|00000280| 65 61 74 65 20 61 0a 3e | 20 6d 75 6c 74 69 64 69 |eate a.>| multidi|
|00000290| 6d 65 6e 73 69 6f 6e 61 | 6c 20 61 72 72 61 79 2c |mensiona|l array,|
|000002a0| 20 62 75 74 20 64 6f 6e | 27 74 20 6b 6e 6f 77 20 | but don|'t know |
|000002b0| 68 6f 77 2e 20 53 6f 20 | 66 61 72 20 49 20 68 61 |how. So |far I ha|
|000002c0| 76 65 3a 0a 3e 20 63 6f | 6d 70 6c 65 78 20 2a 67 |ve:.> co|mplex *g|
|000002d0| 72 69 64 3b 0a 3e 20 73 | 63 61 6e 66 28 22 25 64 |rid;.> s|canf("%d|
|000002e0| 20 25 64 22 2c 20 26 6e | 63 2c 20 26 6e 72 29 3b | %d", &n|c, &nr);|
|000002f0| 0a 3e 20 67 72 69 64 20 | 3d 20 6e 65 77 20 63 6f |.> grid |= new co|
|00000300| 6d 70 6c 65 78 5b 6e 63 | 5d 5b 6e 72 5d 3b 0a 3e |mplex[nc|][nr];.>|
|00000310| 20 0a 3e 20 55 6e 66 6f | 72 74 75 6e 61 74 65 6c | .> Unfo|rtunatel|
|00000320| 79 20 74 68 69 73 20 77 | 6f 6e 27 74 20 77 6f 72 |y this w|on't wor|
|00000330| 6b 2e 20 41 6e 79 20 69 | 6e 66 6f 20 77 6f 75 6c |k. Any i|nfo woul|
|00000340| 64 20 62 65 20 6d 75 63 | 68 20 61 70 70 72 65 63 |d be muc|h apprec|
|00000350| 69 61 74 65 64 2e 0a 3e | 20 44 61 72 72 65 6c 2e |iated..>| Darrel.|
|00000360| 0a 0a 0a 41 6c 6c 20 62 | 75 74 20 74 68 65 20 6c |...All b|ut the l|
|00000370| 65 66 74 2d 6d 6f 73 74 | 20 64 69 6d 65 6e 73 69 |eft-most| dimensi|
|00000380| 6f 6e 20 6f 66 20 6d 75 | 6c 74 69 70 6c 65 20 64 |on of mu|ltiple d|
|00000390| 69 6d 65 6e 73 69 6f 6e | 61 6c 20 61 72 72 61 79 |imension|al array|
|000003a0| 73 20 6d 75 73 74 20 62 | 65 0a 6b 6e 6f 77 6e 20 |s must b|e.known |
|000003b0| 61 74 20 63 6f 6d 70 69 | 6c 65 20 74 69 6d 65 2e |at compi|le time.|
|000003c0| 20 54 68 69 73 20 69 73 | 20 62 65 63 61 75 73 65 | This is| because|
|000003d0| 20 43 20 61 6e 64 20 43 | 2b 2b 20 69 6e 74 65 72 | C and C|++ inter|
|000003e0| 6e 61 6c 6c 79 20 67 65 | 6e 65 72 61 74 65 0a 61 |nally ge|nerate.a|
|000003f0| 72 72 61 79 73 20 6f 66 | 20 61 72 72 61 79 73 2c |rrays of| arrays,|
|00000400| 20 66 6f 72 20 70 72 6f | 70 65 72 20 69 6e 64 65 | for pro|per inde|
|00000410| 78 69 6e 67 2c 20 74 68 | 65 20 6c 65 6e 67 74 68 |xing, th|e length|
|00000420| 20 68 61 73 20 74 6f 20 | 62 65 20 6b 6e 6f 77 6e | has to |be known|
|00000430| 20 77 68 65 6e 0a 74 68 | 65 20 70 72 6f 67 72 61 | when.th|e progra|
|00000440| 6d 20 63 6f 6d 70 69 6c | 65 73 2e 20 59 6f 75 20 |m compil|es. You |
|00000450| 67 65 74 20 61 72 6f 75 | 6e 64 20 74 68 69 73 20 |get arou|nd this |
|00000460| 62 79 20 75 73 69 6e 67 | 20 74 68 65 20 53 54 4c |by using| the STL|
|00000470| 20 76 65 63 74 6f 72 0a | 63 6c 61 73 73 65 73 2e | vector.|classes.|
|00000480| 0a 0a 57 68 61 74 20 79 | 6f 75 20 77 61 6e 74 20 |..What y|ou want |
|00000490| 74 6f 20 64 6f 20 69 73 | 20 69 6c 6c 65 67 61 6c |to do is| illegal|
|000004a0| 2e 0a 0a 2d 42 72 69 61 | 6e 20 3a 2d 29 0a 6c 61 |...-Bria|n :-).la|
|000004b0| 73 62 66 6c 40 61 61 69 | 2e 61 72 63 6f 2e 63 6f |sbfl@aai|.arco.co|
|000004c0| 6d 0a | |m. | |
+--------+-------------------------+-------------------------+--------+--------+